# encoding=UTF-8
'''

输入数字，然后按照输入的数字用*打出数字

Created on 2018年2月8日
@author: wesley.wei
'''

zero = [" *** ","*   *","*   *","*   *","*   *","*   *"," *** "]
one = ["  *  ","  *  ","  *  ","  *  ","  *  ","  *  ","  *  "]
two = [" *** ","*   *","   * ","  *  "," *   ","*    ","*****"]
three = [" *** ","*   *","    *","  ***","    *","    *"," *** "]
four = ["*   *","*   *","*   *","*****","    *","    *","    *"]
five = ["*****","*    ","*    ","*****","    *","    *","*****"]
six = ["*****","*    ","*    ","*****","*   *","*   *","*****"]
seven = ["*****","*   *","*   *","    *","    *","    *","    *"]
eight = ["*****","*   *","*   *","*****","*   *","*   *","*****"]
nine = ["*****","*   *","*   *","*****","    *","    *","*****"]
numberArray = [zero,one,two,three,four,five,six,seven,eight,nine]



inputVal = input("请输入数字（0-9）， 以逗号分隔:")
inputArray = inputVal.split(",");   

print("&&&&&&&&&&&&   FUCK YOU BABY   &&&&&&&&&&&")
rowIndex = 0
while rowIndex < 7:
    line = ""
    for inputV in inputArray:
        inputInt = int(inputV)
        row =  numberArray[inputInt]
        line += row[rowIndex] + "     "
    rowIndex += 1
    print( line ) #换行输出， 每行中间没有空一行,print(line) print()，换行输出 ，但是每行中间有个空行
print("&&&&&&&&&&&&   FUCK YOU BABY   &&&&&&&&&&&")            
        
            